package com.numberone.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.numberone.system.mapper.XyCardMapper;
import com.numberone.system.domain.XyCard;
import com.numberone.system.service.IXyCardService;
import com.numberone.common.support.Convert;

/**
 * 欣亿卡 服务层实现
 * 
 * @author numberone
 * @date 2020-10-10
 */
@Service
public class XyCardServiceImpl implements IXyCardService 
{
	@Autowired
	private XyCardMapper xyCardMapper;

	@Override
	public XyCard selectXyCardById(Long id) {
		return xyCardMapper.selectXyCardById(id);
	}

	/**
     * 查询欣亿卡信息
     * 
     * @param cardNum 欣亿卡ID
     * @return 欣亿卡信息
     */
    @Override
	public XyCard selectXyCardByNum(String cardNum)
	{
	    return xyCardMapper.selectXyCardByNum(cardNum);
	}
	
	/**
     * 查询欣亿卡列表
     * 
     * @param xyCard 欣亿卡信息
     * @return 欣亿卡集合
     */
	@Override
	public List<XyCard> selectXyCardList(XyCard xyCard)
	{
	    return xyCardMapper.selectXyCardList(xyCard);
	}
	
    /**
     * 新增欣亿卡
     * 
     * @param xyCard 欣亿卡信息
     * @return 结果
     */
	@Override
	public int insertXyCard(XyCard xyCard)
	{
	    return xyCardMapper.insertXyCard(xyCard);
	}
	
	/**
     * 修改欣亿卡
     * 
     * @param xyCard 欣亿卡信息
     * @return 结果
     */
	@Override
	public int updateXyCard(XyCard xyCard)
	{
	    return xyCardMapper.updateXyCard(xyCard);
	}

	/**
     * 删除欣亿卡对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteXyCardByIds(String ids)
	{
		return xyCardMapper.deleteXyCardByIds(Convert.toStrArray(ids));
	}

	@Override
	public int isCardNum(String cardNum) {
		return xyCardMapper.isCardNum(cardNum);
	}

	@Override
	public int isCardPwd(String cardPwd) {
		return xyCardMapper.isCardPwd(cardPwd);
	}

}
